﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibBinary.FileData
{
    public class ObjectData : AbstractFileData
    {
        public string ObjectID;
        public StructuredData Data;

        public ObjectData(AbstractFileData parent)
            : base(parent)
        {
        }

        public override AbstractFileData GetChild(int index)
        {
            throw new ReadingFormatException("GetChild in ObjectData.");
        }

        public override string ToString()
        {
            return "$" + ObjectID + " " + Data.ToString();
        }
    }
}
